package com.scheduled.lesson.springbootscheduledasync.schedule;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author gusheng
 * @Date 2021/1/8 14:45
 * @ClassName 类名称
 * @Description 类描述
 * @Version 3.4
 */
@Component
public class RedisDule {
  //  @Scheduled(fixedRate = 5000)
    public void schedule1(){
        System.out.println("定时任务1执行了");
    }
}
